package ai.mspbots.poc.core.exception;

public class ServiceException extends RuntimeException {

    private static final long serialVersionUID = 1L;

    private int code;
    public ServiceException(String message) {
        super(message);
    }

    public ServiceException(String message, Throwable cause) {
        super(message, cause);
    }

    public ServiceException(int code, String message) {
        super(message);
        this.code = code;
    }

    public ServiceException(int code, String message, Throwable cause) {
        super(message, cause);
        this.code = code;
    }
}
